package lab02.test09;

public class Student {//创建一个学生的类，他的属性
    String studentid;
    String classnum;
    String name;
    String  sex;
    int age;
//方法的获得
    public String getStudentid() {
        return studentid;
    }

    public String getClassnum() {
        return classnum;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }
    public int getAge(){
        return age;
    }

    @Override
    public String toString() {
        return ("学号:"+studentid+"   "+"班级:"+classnum+"   "+"姓名:"+name+"   "+"性别:"+sex+"  "+"年龄:"+age);
    }
}
